import pymysql




if __name__ == '__main__':



    # 编写SQL语句
    sql = 'select * from employ'  # 表名请自行修改为自定义参数
    # 纯字符串模式，单参数
    cursor.execute(sql)
    data=cursor.fetchall()
    for i in data:
        print(i)
    cursor.close()


